<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>{$_title}</h2>
    </div>
	   <div class="form-horizontal">
    		<input type="hidden" name="id" value="{$user.id}" />
        <div class="form-item">
            <label class="item-label">用户ID：<span class="check-tips">{$user.id}</span></label>
        </div>
        <div class="form-item">
            <label class="item-label">手机号：<span class="check-tips">{$user.mobile}</span></label>
        </div>
        <div class="tab-wrap">
			<ul class="tab-nav nav" id="info_nav">
				<li data-nav="1" class="current" id="realname_auth"><a href="javascript:void(0)">实名认证</a></li>
				<li data-nav="2" id="conforms_auth"><a href="javascript:void(0)">合格认证</a></li>
				<li data-nav="3" id="initiator_auth"><a href="javascript:void(0)">发起人</a></li>
			</ul>
			<div class="tab-content" id="info_container"></div>
		</div>
    </div>
</block>
<block name="style">
	<style type="text/css">
	</style>
</block>
<block name="script">
<script type="text/javascript">
    $("#info_nav").children('li').click(function(){
		$(this).siblings('li').removeClass('current');
		$(this).addClass('current');
		$id = "{$user.id}";
		
		$container = $("#info_container");
		$container.empty();
		
		ajaxRequest("{:U('AppUser/loadEditUser')}", {"type":$(this).attr('data-nav'),"id":$id}, {"func":function(data){
			if(data) {
				$container.append(data.info);
			} else {
				$container.empty().append('导入失败');
			}
		}});
	});
	
	$("#info_nav").children('li').eq(0).click();
        //导航高亮
        highlight_subnav('{:U('AppUser/userList')}');
    </script>
</block>
